package com.Controller.servlet;

import com.Model.Pojo.Invest;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class DuanQiTouZiServlet extends HttpServlet {
	public void doPost(HttpServletRequest request, HttpServletResponse response)
	throws IOException{
		response.setContentType("text/html");
		request.setCharacterEncoding("UTF-8");
    	response.setCharacterEncoding("UTF-8");

		Invest invest = new Invest();//创建投资理财对象
		invest.setUserInvest(request); //理财信息写入数据库

		response.sendRedirect("/Bank/WebPage/FrontPage/InvestmentAndFinancingPage/ShortTermInvestmentPage/ShortTermInvestment.jsp");
	}
}
